home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / QuickTime VR / MacOS / QuickDraw™ 3D 1.0.6F4 SDK / Samples / SampleCode / BoxTex / BoxTex3DSupport.h < prev    next >
Encoding:
Text File  |  1995-03-22  |  1.7 KB  |  57 lines  |  [TEXT/MPCC]

  1. // My3dSupport.c - QuickDraw 3d routines - interface
  2. //
  3. // This file contains
  4. //
  5. // Created 27th Dec 1994, Nick Thompson, DEVSUPPORT
  6. //
  7. // Modification History:
  8. //
  9. //    12/27/94        nick        initial version
  10.  
  11. #ifndef _BOX3DSUPPORT_H_
  12. #define _BOX3DSUPPORT_H_
  13.  
  14. // Macintosh System Stuff
  15. #include <Types.h>
  16. #include <Windows.h>
  17.  
  18. // QuickDraw 3D stuff
  19. #include "QD3D.h"
  20. #include "QD3DErrors.h"
  21. #include "QD3DView.h"
  22.  
  23. //-------------------------------------------------------------------------------------------
  24.  
  25. struct _documentRecord {
  26.     TQ3ViewObject    fView ;                    // the view for the scene
  27.     TQ3GroupObject    fModel ;                // object in the scene being modelled
  28.     TQ3StyleObject    fInterpolation ;        // interpolation style used when rendering
  29.     TQ3StyleObject    fBackFacing ;            // whether to draw shapes that face away from the camera
  30.     TQ3StyleObject    fFillStyle ;            // whether drawn as solid filled object or decomposed to components
  31.     TQ3Matrix4x4        fRotation;            // the transform for the model
  32.     TQ3Point3D        fGroupCenter ;            // the center of the group (for rotation) 
  33.     float            fGroupScale    ;            // scaling factor to apply before drawing
  34. };
  35.  
  36. typedef struct _documentRecord DocumentRec, *DocumentPtr, **DocumentHdl ;
  37.  
  38. //---------------------------------------------------------------------------------------
  39.  
  40. OSErr MyQD3DInitialize( void ) ;
  41. OSErr MyQD3DExit() ;
  42.  
  43. TQ3ViewObject         MyNewView(WindowPtr theWindow) ;
  44. TQ3DrawContextObject MyNewDrawContext( WindowPtr theWindow) ;
  45. TQ3CameraObject         MyNewCamera(WindowPtr theWindow) ;
  46. TQ3GroupObject        MyNewLights(void) ;
  47. TQ3GroupObject         MyNewModel(void) ;
  48. TQ3Status SubmitScene( DocumentPtr theDocument ) ;
  49.  
  50.  
  51. TQ3Point3D AdjustCamera(
  52.     DocumentPtr            theDocument,
  53.     short                winWidth,
  54.     short                winHeight) ;
  55.  
  56. #endif
  57.